
import wx

myEVT_FILE_SELECTED = wx.NewEventType()
EVT_FILE_SELECTED = wx.PyEventBinder(myEVT_FILE_SELECTED, 1)

myEVT_FILE_UNSELECTED = wx.NewEventType()
EVT_FILE_UNSELECTED = wx.PyEventBinder(myEVT_FILE_UNSELECTED, 1)

myEVT_RENAME = wx.NewEventType()
EVT_RENAME = wx.PyEventBinder(myEVT_RENAME, 1)

myEVT_FILE_RENAMED = wx.NewEventType()
EVT_FILE_RENAMED = wx.PyEventBinder(myEVT_FILE_RENAMED, 1)

myEVT_FILES_LOADED = wx.NewEventType()
EVT_FILES_LOADED = wx.PyEventBinder(myEVT_FILES_LOADED, 1)

class Event(wx.PyCommandEvent):
    def __init__(self, evtType, id = -1):
        wx.PyCommandEvent.__init__(self, evtType, id)
        self.value = None
    
    def SetValue(self, value):
        self.value = value

    def GetValue(self):
        return self.value
    
    def __str__(self):
        return self.value

class EventListBox(Event):
    
    def __init__(self, evtType, isSelected, id = -1):
        Event.__init__(self, evtType)
        self.__isSelected = isSelected
        
    def IsSelected(self):
        return self.__isSelected

class EventRename(Event):
    
    def __init__(self, evtType, renameInLowercase, withNumerotation, id = -1):
        Event.__init__(self, evtType)
        self.__renameInLowercase = renameInLowercase
        self.__withNumerotation = withNumerotation
        
    def RenameInLowercase(self):
        return self.__renameInLowercase
    
    def WithNumerotation(self):
        return self.__withNumerotation